<!DOCTYPE html>
<html lang="en">
<head>
    <title>展会公司报表</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-store, must-revalidate">
    <meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT">
    <meta http-equiv="expires" content="-1">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="/dist/img/icon.png" type="image/x-icon">
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="/dist/plugins/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/dist/plugins/select2/select2.min.css">
    <link rel="stylesheet" href="/dist/css/font-awesome.min.css">
    <link rel="stylesheet" href="/dist/css/ionicons.min.css">
    <link rel="stylesheet" href="/dist/css/OA.min.css?t=86e2297f">
    <link rel="stylesheet" href="/dist/css/skins/OA-skins.min.css?t=222aea35">
    <style type="text/css">
        .leftFilter {
            float: left;
            text-align: left;
            margin-right: 5px;
        }

        .clickable {
            color: #489EF1;;
            cursor: pointer;
            text-align: left;
            font-weight: bold;
        }
    </style>
</head>
<body>
<section class="content" id="app">
    <div class="box-body no-padding iframeH3" style="overflow: auto;background: #fff;border-top: 1px solid #cbcbcd;
    border-bottom: 1px solid #cbcbcd">
        <table class="table table-bordered" style="margin: -1px 0">
            <thead>
            <tr>
                <th style="width:9%;text-align: center">公司名称</th>
                <th style="width:8%;text-align: center">展会时间</th>
                <th style="width:10%;text-align: center">展会地点</th>
                <th style="width:10%;text-align: center">展会类型</th>
                <th style="width:5%;text-align: center">客户<br>目标</th>
                <th style="width:5%;text-align: center">参会人<br>数标准</th>
                <th style="width:5%;text-align: center">参会<br>人数</th>
                <th style="width:5%;text-align: center">定金<br>目标</th>
                <th style="width:5%;text-align: center">定金目<br>标标准</th>
                <th style="width:5%;text-align: center">已交</th>
                <th style="width:5%;text-align: center">肯定交</th>
                <th style="width:5%;text-align: center">不确定</th>
                <th style="width:5%;text-align: center">不交</th>
                <th style="width:14%;text-align: center">备注</th>

            </tr>
            </thead>
            <tbody>
            <tr v-for="(item,i) in list">
                <td :rowspan="item.namespan" :class="{hidden: item.namedis}" style="text-align: center">{{item.name}}</td>
                <td style="text-align: center" class='clickable' @click="toBigRegionList(item.exhibitionDate,item.id,item.createUserId)">
                    {{item.exhibitionDate}}
                </td>
                <td style="text-align: center">{{item.provinceName}}{{item.cityName}}{{item.address}}</td>
                <td style="text-align: center">{{item.exhibitionTypeName}}</td>
                <td style="text-align: center">{{item.customNum==0?'-':item.customNum}}</td>
                <td style="text-align: center">{{item.customNum==0?'-':Math.round(item.customNum*1.5)}}</td>
                <td style="text-align: center">{{item.participationNum}}</td>
                <td style="text-align: center">{{item.depositNum==0?'-':item.depositNum}}</td>
                <td style="text-align: center">{{item.customNum==0?'-':item.customNum*0.2}}</td>
                <td style="text-align: center">{{item.submitNum}}</td>
                <td style="text-align: center">{{item.sureNum}}</td>
                <td style="text-align: center">{{item.uncertainNum}}</td>
                <td style="text-align: center">{{item.donotNum}}</td>
                <td>{{item.remark}}</td>
            </tr>
            </thead>
        </table>
    </div>

</section>
<script src="https://file.ggxqce.com/web/jquery-2.2.3.min.js"></script>
<!--插件JS-->
<script src="https://file.ggxqce.com/web/bootstrap.min.js"></script>
<!--框架已定义 JS-->
<script src="/dist/js/app_iframe.js?t=8e743a31"></script>
<!--oa自定义  JS-->
<script src="/dist/js/oa.js?t=54c6b89c"></script>
<script src="https://file.ggxqce.com/web/vue.min.js"></script>
<script type="text/javascript" src="/dist/plugins/lhgdialog/lhgdialog.min.js?self=true"></script>
<script type="text/javascript" src="/dist/plugins/select2/select2.full.min.js"></script>
<script type="text/javascript">
    var app = new Vue({
        el: '#app',
        data: {
            currentUser: getCurrentUser(),
            list: []
        },
        methods: {
            toBigRegionList: function (titleName, exhibitionId, userId) {
                top.addTabs({id: "exhibitionBigRegionList", title: titleName, close: true, url: 'reportForm/exhibition/bigRegionList.html?exhibitionId=' + exhibitionId + '&userId=' + userId + '&t=' + new Date()});
            },
            tablesMergeCell: function (list) {
                for (field in list[0]) {
                    var k = 0;
                    while (k < list.length) {
                        list[k][field + 'span'] = 1;
                        list[k][field + 'dis'] = false;
                        for (var i = k + 1; i <= list.length - 1; i++) {
                            if (list[k][field] == list[i][field] && list[k][field] != '') {
                                list[k][field + 'span']++;
                                list[k][field + 'dis'] = false;
                                list[i][field + 'span'] = 1;
                                list[i][field + 'dis'] = true;
                            } else {
                                break;
                            }
                        }
                        k = i;
                    }
                }
                return list;
            }
        },

        mounted: function () {
            var that=this;
            $.wyui.postMethod("/exhibition/getExhibitionList.json", {
                companyId:$.wyui.page.urlParams.companyId
            }, function (data) {
                that.list = that.tablesMergeCell(data);
            });
        }
    });


</script>

</body>
</html>